﻿@model List<MovieMadness.Model.Actor>
           <br/>
<link href="~/Content/superhero.bootstrap.css" rel="stylesheet" />
<h2>Actors</h2>
@foreach (var a in Model)
{
    <div class="well">
        @Html.LabelFor(x => a.Name): @a.Name
        @Html.ActionLink("Add Review", "AddReview", new { id = a.MovieId }, new { @class = "btn btn-default" })
        <table class="table table-bordered">
            <tbody>
                @foreach (var m in a.Movies)
                {
                    <tr>
                        @*<td>@r.ReviewId</td>*@
                        <td><i>Movie:</i> @m.Title</td>
                    </tr>
                    <tr>
                        <td>
                            @Html.ActionLink(" Edit ", "EditActor", new { id = m.ActorId })
                        @Html.ActionLink(" Delete ", "DeleteActor", new { id = m.ActorId })
                    </td>
                </tr>
                }
            </tbody>
        </table>
    </div>
}

